/**
 * <p>Copyright:Copyright(c) 2019</p>
 * <p>Company:Professional</p>
 * <p>Package:com.cesgroup.zw.spring.boot.echarts.model.scatter</p>
 * <p>File:RippleEffect.java</p>
 * <p>类更新历史信息</p>
 * @todo chanlong(陈龙) 创建于 Jun 3, 2019 1:10:29 PM
 */
package com.cesgroup.zw.spring.boot.echarts.model.effect;

import java.io.Serializable;
import java.math.BigDecimal;

import com.cesgroup.zw.spring.boot.echarts.enums.RippleType;
import com.cesgroup.zw.spring.boot.supports.util.math.BigDecimalUtil;

import lombok.Data;

/**
 * <p>描述: 涟漪特效相关配置</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date Jun 3, 2019 1:10:29 PM
 * @version 1.0.2019
 */
@Data @SuppressWarnings("serial")
public class RippleEffect implements Serializable {

	/** 动画的周期，单位秒，[default: 4] */
	private Integer period;
	
	/** 动画中波纹的最大缩放比例，[default: 2.5] */
	private BigDecimal scale;
	
	/** 波纹的绘制方式，支持'stroke'和'fill'，[default: 'fill'] */
	private RippleType brushType;
	
	public void setScale(int scale) {
		this.scale = BigDecimalUtil.valueOf(scale);
	}
	
	public void setScale(double scale) {
		this.scale = BigDecimalUtil.valueOf(scale);
	}
}
